//jQuery('tbody#item_body').hide(200, function(){jQuery(this).html('<%#= escape_javascript render("items") %>').show(500);});
jQuery('thead#item_head').html('<%= escape_javascript render("item_header") %>')
jQuery('tbody#item_body').html('<%= escape_javascript render("items") %>').hide(300).show(300);
jQuery('tfoot#paging_links').html('<%= escape_javascript render("application_partials/paging") %>');
jQuery('#active_links').html('<%= escape_javascript render("filter_links") %>');
jQuery('#bulk_actions').html('<%= escape_javascript render("bulk_actions") %>');

<% status = params[:status]%>
jQuery('.top_links').hide();
jQuery('#active_links a').removeClass('active');
jQuery('.primary_heading h1 span').html("&nbsp;/&nbsp;<%= status.capitalize%>");
<%if status == "active" %>
jQuery('.archive,.destroy').show();
jQuery('#active_links a.get_actives').addClass('active');
<% elsif status == "archived"%>
jQuery('.recover_archived,.destroy_archived').show();
jQuery('#active_links a.get_archived').addClass('active');
<% elsif status == "deleted"%>
jQuery('.recover_deleted').show();
jQuery('#active_links a.get_deleted').addClass('active');
<%end%>
jQuery('#select_all').attr('checked', false);
jQuery("table.table_listing").trigger('update');
window.history.pushState({html: $("body").html()},"","<%= request.original_url %>")